<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet"
	type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet"
	type="text/css" />
<link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css"
	rel="stylesheet" type="text/css" />
<link href="lib/region/css/city-picker.css" rel="stylesheet"
	type="text/css" />
<link href="lib/region/css/main.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>审核新发现活动</title>
</head>
<body>
<div class="pd-20">
	<form action="<%=path%>/backstage/u_activity_discover-doverify" method="post" class="form form-horizontal" id="form-u_discover-todo">
		<input type="hidden" id="id" name="id" value='${u_discover.id}' />
        
        <div class="row cl">
        	<label class="form-label col-xs-4 col-sm-3">活动类型：</label>
			<div class="formControls col-xs-8 col-sm-5">
				<c:forEach items="${cates}" var="cate">
				<c:if test="${cate.id==u_discover.activity_type}">${cate.cate_name}</c:if>
				</c:forEach>
			</div>
		</div>
		
        <div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">活动海报：</label>
            <div class="formControls col-xs-8 col-sm-5">
            	<div id="fileList_pre_picture" class="uploader-list">
	            	<c:if test="${!empty u_discover.head_img}">
						<img src="${u_discover.head_img}" height="50" border="0" /> 
					</c:if>          	
            	</div>
				<input type="hidden" class="input-text"
					value="${u_discover.head_img}" placeholder=""
					id="head_img" name="head_img">
        	</div>
        </div>
		
        <div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">添加音乐：</label>
        	<div class="formControls col-xs-8 col-sm-5">${u_discover.vedio}</div>
		</div>
		
        <div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">活动主题：</label>
            <div class="formControls col-xs-8 col-sm-5">${u_discover.title}</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">投放地区：</label>
			<div class="formControls col-xs-8 col-sm-5">
				<input id="city-picker3" class="form-control" readonly
					name="regioninfo" type="text"
					value="${u_discover.city}"
					data-toggle="city-picker">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">详细地址：</label>
			<div class="formControls col-xs-8 col-sm-5">${u_discover.address}</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">广告开始时间：</label>
			<div class="formControls col-xs-8 col-sm-5">${u_discover.begin_time}</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">广告结束时间：</label>
			<div class="formControls col-xs-8 col-sm-5">${u_discover.end_time}</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">活动说明：</label>
            <div class="formControls col-xs-8 col-sm-5">${u_discover.description}</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">活动费用</label>
			<label class="form-label col-xs-4 col-sm-5">&nbsp;
			<label class="form-label col-xs-4 col-sm-3"></label>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-2 col-sm-1">&nbsp;</label>
			<label class="col-xs-10 col-sm-8">
				<table id="charge" class="table">
	                <thead>
	                    <tr>
	                        <th class="col-xs-1">#</th>
	                        <th class="col-xs-3">费用名称</th>
	                        <th class="col-xs-1">金额</th>
	                        <th class="col-xs-2">人数上限</th>
	                    </tr>
	                </thead>
	                <tbody>
	               
	                	<c:forEach items="${specs}" var="spec">
							<tr>
								<td class='col-xs-1'></td>
								<td class='col-xs-3'>${spec.price_name}</td>
								<td class='col-xs-1'>${spec.price}</td>
								<td class='col-xs-2'>${spec.limit}</td>
				   			</tr>
						</c:forEach>
					
	                </tbody>
	            </table>
			</label>
		</div>
		
        <div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button onClick="u_discover_verify();"
					class="btn btn-primary radius" type="submit">
					<i class="Hui-iconfont">&#xe632;</i> 审核
				</button>
				<button onClick="u_discover_denie();" class="btn btn-warning radius"
					type="submit"><i class="Hui-iconfont">&#xe632;</i> 驳回</button>
			</div>
		</div>

	</form>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
<script type="text/javascript"
	src="lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript"
	src="lib/webuploader/0.1.5/webuploader.min.js"></script>
<script type="text/javascript"
	src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript"
	src="lib/ueditor/1.4.3/ueditor.all.min.js"></script>
<script type="text/javascript" src="lib/region/js/city-picker.data.js"></script>
<script type="text/javascript" src="lib/region/js/city-picker.js"></script>
<script type="text/javascript" src="lib/region/js/main.js"></script>
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$('#charge').find('tbody tr').each(function(){
		var rowIndex = $(this).index() + 1;
		$(this).find('td:eq(0)').text(rowIndex);
	})	
});

function u_discover_verify() {
	$("#form-u_discover-todo").attr("action", "<%=path%>/backstage/u_activity_discover-doverify");
	$("#form-u_discover-todo").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(form){
			var index = parent.layer.getFrameIndex(window.name);
			if (index){//关闭弹出层
				parent.$('.btn-refresh').click(); 
				parent.layer.close(index);
			}else{//单独的页面
				location.href = "<%=path%>/backstage/u_activity_discover-list"; 
			}
		}
	});
}

function u_discover_denie() {
	$("#form-u_discover-todo").attr("action", "<%=path%>/backstage/u_activity_discover-dodenie");
	$("#form-u_discover-todo").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(form){
			var index = parent.layer.getFrameIndex(window.name);
			if (index){//关闭弹出层
				parent.$('.btn-refresh').click(); 
				parent.layer.close(index);
			}else{//单独的页面
				location.href = "<%=path%>/backstage/u_activity_discover-list"; 
			}
		}
	});
}
</script>
</body>
</html>